package com.wonders.springboot.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class MyWebmvcConfig extends WebMvcConfigurationSupport {

    @Override
    protected void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("index");
        registry.addViewController("/failer").setViewName("failer");
        registry.addViewController("/index").setViewName("index");
        registry.addViewController("/success").setViewName("success");
        registry.addViewController("/unauth").setViewName("unauth");
    }
}
